﻿using System.Collections.Generic;
using MaxStoreShop.Domain.Directories;
using MaxStoreShop.Domain.Shop;
using MaxStoreShop.Logic.RepositoriesContracts.Directories;

namespace MaxStoreShop.Logic.Tests.FakeRepositories
{
    class CharacterRepositoryFake : ICharacterRepository
    {
        readonly StoreUser _user = new StoreUser { FirstName = "Ivan", LastName = "Ivanov", SecretCode = "0" };

        public IEnumerable<Character> GetCharacters()
        {
            return new List<Character>();
        }

        public void DeleteCharacter(int characterId)
        {

        }

        public IEnumerable<Debt> GetCharacterDebts(int characterId)
        {
            if (characterId == 2)
                return new List<Debt> { new Debt { Accruals = 10, IsDebtReimbursement = false, FormalizeDebtUser = _user } };

            return new List<Debt>();
        }

        public void SaveCharacter(Character character)
        {

        }
    }
}
